package com.zyc.system;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 系统管理启动器
 * @Author zd
 */
@Slf4j
@EnableTransactionManagement
@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableAsync
@MapperScan("com.zyc.**.mapper")
@SpringBootApplication
public class ZycSystemApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(ZycSystemApplication.class, args);
            log.info("\n                    (♥◠‿◠)ﾉﾞ  系统服务启动成功   ლ(´ڡ`ლ)ﾞ              \n");

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
